<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>测试const传参</title>
</head>
<body>
<script type="text/javascript">
    function f(option) {
        const {success,complete}=option;
        alert(success);//胜利
        alert(complete);//undefined
    }
    f({success:"胜利"});


</script>
</body>
</html>